package com.xy.order.config;

import com.github.benmanes.caffeine.cache.Cache;
import com.github.benmanes.caffeine.cache.Caffeine;
import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.ThreadLocalRandom;
import java.util.concurrent.TimeUnit;

@Configuration
public class MyFeignIntercepterConfig {

    @Bean(name = "myRequestIntercepter")
    public RequestInterceptor myRequestIntercepter() {
       return new MyRequestIntercepter();
    }
}
